package org.lgiavedoni.android.franq.command.system;

import java.util.Date;

import org.apache.commons.cli.CommandLine;
import org.lgiavedoni.android.franq.core.command.Command;
import org.lgiavedoni.android.franq.service.communication.CommunicationService;

public class DateCommand extends Command {

	@Override
	public boolean execute(CommandLine cmd) throws Exception {
		CommunicationService.inst.sendDefaultTextMessage(new Date().toLocaleString());
		return true;
	}

	@Override
	public String getCommandText() {
		return "date";
	}
}